@import 'global.config.less';

html, body {
  height: 100%;
  margin: 0;
  font-family: "Lucida Console", "Lucida Sans Unicode", sans-serif;
}

*:not(input):not(textarea):not(td):not(th):not(tr) {
  border: none;
  border-radius: 0;
}
*[type=submit]:disabled{cursor: not-allowed;}
h1,h2,h3,h4,h5{margin:0;}
a{
  color: @dark_bg;
  text-decoration: none;
  &:hover{
    color:@light_bg;
    cursor: pointer;
    text-decoration: underline;
  }
}
::selection{
  background-color: lighten(@light_bg,12%);
  color: @text;
}
/**
 表格全局设置
 */
table{border-collapse:collapse;}
th,td{
  border: .5px solid #ccc;
  padding: @form_pad;
  &:first-child{border-left: none;}
  &:last-child{border-right: none;}
}
tr{
  &:first-child{
    th,td{border-top: none;};
    border-top: none;
  }
  &:last-child{
    th,td{border-bottom: none;}
    border-bottom: none;
  }
}

input,textarea {
  padding: @input_pad;
  border: 1px solid @dark_bg;
  line-height: 150%;
  &[type=file] {
    display: none;
  };
  &:focus {
    border: 1px solid @light_bg;
  };
}

.hr{
  content: "";
  border-bottom: 1px solid #ccc;
  display: block;
}
.pointer{cursor: pointer};
.popup{
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width:100%;
  height: 100%;
  background-color: fadeout(@grey,70%);
  transition: 0.5s all linear;
  display: flex;
  justify-content: center;
  align-items: center;

  &-content{
    background-color: #fff;
    h3{
      display: flex;
      justify-content: space-between;
      border-bottom: 1px solid @grey;
    }
    .btns{
      display: flex;
      justify-content: flex-end;
      flex-wrap: nowrap;
      border-top: 1px solid @grey;
      padding: 5px;
    }
  }

  &.ng-enter,&.ng-hide-remove{
    transform: scale(1,0);
    &-active{
      transform: scale(1,1);
    }
  }
  &.ng-leave,&.ng-hide-add{
    transform: scale(1,1);
    &-active{
      transform: scale(1,0);
    }
  }
}

.tag {
  background-color: @light_bg;
  color: @text !important;
  padding: 5px;
  magin:3px;
  white-space: nowrap;
  &:hover {
    box-shadow: @box_shadow;
  }
  &-success {
    background-color: @success;
  }
  &-primary {
    background: @primary;
  }
  &-default {
    background-color: @default;
  }
}

.hashtag{
  &:hover::after{
    padding: 5px;
    position: relative;
    content: '\276F';
    animation: .8s slide infinite alternate;
  }
}

.base{color:@light_bg;}
.success {color: @success}
.danger {color: @danger}
.warning {color: @warning}
.primary {color: @primary;}
.default{color:@dark_bg;}

// form
form {
  .form-group {
    display: flex;
    padding: @form_pad;
    border-bottom: @bot_line;
    label:first-child {min-width: 85px;}
  }

  .btn-group{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: @form_pad;
    &>*{
      margin:0 @form_pad;
      padding: @form_pad;
    }
  }

  &>*[type=submit] {
    .tag;
    margin: @form_pad auto;
    padding: @form_pad;
  }
}

.module {
  padding: 5px;
  font-size: 1.2rem;
  font-weight: 700;
  &::before{
    display: inline-block;
    margin-right: 5px;
    content: '\2585\2581';
    color:@light_bg;
  }
}



// animate
.pound {
  background-color: @light_bg;
  border-radius: 50%;
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  left: 17px;
  top: 8px;
  animation: 2s pound infinite;
}

@keyframes pound {
  from {
    transform: none;
  }
  50% {
    transform: scale(1.2);
  }
  to {
    transform: none;
  }
}

@keyframes slide {
  0%{
    left: 0px;
    color: fadeout(@light_bg,20%);
  }
  100%{
    left:5px;
    color:  fadeout(@light_bg,10%);
  }
}